<script type="text/javascript" src="{{ asset('bundles/rtscraftmain/js/treemenu.js') }}"></script>
<script type="text/javascript" src="{{ asset('bundles/rtscraftmain/js/button.js') }}"></script>

<div class="popup" id="AdvancedSearch" STYLE="visibility:hidden; position:absolute;">
	<div class="popuptopbar" >
		<button onclick="javascript:advsearchpopup();">X</button>
	</div>
	<ul>
	  {% for key, value in tree %}
	  <li onclick="javascript:hideshowadvsearch(event);" id={{key}} >
	    {{key}}
	  </li>
	  <ul style="visibility:hidden; position:absolute;" id="entities">
	    {% for svalue in value %}
	    <li name="entities" onclick="javascript:document.getElementById('searchinput').value = this.innerHTML;" >{{ svalue }}</li>
	    {% endfor %}
	  </ul>
	  {% endfor %}
	</ul>
</div>
